import request from "@/utils/request";
/**
 * 物料列表api
 */

export function materialList(data) {
  return request({
    url: "/material/pig/list",
    method: "post",
    data,
  });
}

export function addAndUpdate(data) {
  return request({
    url: "/material/pig/addAndUpdate",
    method: "post",
    data,
  });
}

export function materialDelete(data) {
  return request({
    url: "/material/pig/delete",
    method: "post",
    data,
  });
}